package com.ruoyi.project.paea.paeaDsTrade.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.project.data.tradeOperate.domain.PaeaDsTradeQuery;
import com.ruoyi.project.paea.paeaDsTrade.domain.PaeaDsTrade;
import com.ruoyi.project.paea.paeaDsTrade.model.TradeTellerImagesVo;
import com.ruoyi.project.sdi.sdiImage.domain.SdiImage;
import com.ruoyi.project.sdi.sdiPaeaArc.domain.SdiPaeaArc;

import java.util.List;

/**
 * 交易流水Service接口
 *
 * @author 关晓强
 * @date 2020-03-16
 */
public interface IPaeaDsTradeService extends IService<PaeaDsTrade>
{
    /**
     * 查询交易流水
     *
     * @param id 交易流水ID
     * @return 交易流水
     */
    public PaeaDsTrade selectPaeaDsTradeById(String id);

    /**
     * 查询交易流水列表
     *
     * @param paeaDsTrade 交易流水
     * @return 交易流水集合
     */
    public List<PaeaDsTrade> selectPaeaDsTradeList(PaeaDsTrade paeaDsTrade);

    public List<PaeaDsTrade> selectPaeaDsTrades(PaeaDsTradeQuery paeaDsTrade);
    /**
     * 新增交易流水
     *
     * @param paeaDsTrade 交易流水
     * @return 结果
     */
    public int insertPaeaDsTrade(PaeaDsTrade paeaDsTrade);

    /**
     * 修改交易流水
     *
     * @param paeaDsTrade 交易流水
     * @return 结果
     */
    public int updatePaeaDsTrade(PaeaDsTrade paeaDsTrade);

    /**
     * 批量删除交易流水
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deletePaeaDsTradeByIds(String ids);

    /**
     * 删除交易流水信息
     *
     * @param id 交易流水ID
     * @return 结果
     */
    public int deletePaeaDsTradeById(String id);

    public void deleteTradeImageRelBySdiPaeaArc(SdiPaeaArc sdiPaeaArc);

    public int filterTradesByIds(String ids);
    public int openTradesByIds(String ids);

    /**
     * 通过流水查询影像
     * @param paeaDsTrade
     * @return
     */
    public List<SdiImage> getSdiImagesByPaeaDsTrade(PaeaDsTrade paeaDsTrade);

    /**
     * 查询批次的流水列表
     * @param sdiPaeaArc
     * @return
     */
    public List<PaeaDsTrade> getPaeaDsTradesBySdiPaeaArc(SdiPaeaArc sdiPaeaArc);

    /**
     * 批量更新流水
     * @param paeaDsTradeList
     */
    public void batchUpdatePaeaDsTrades(List<PaeaDsTrade> paeaDsTradeList);

    /**
     * 查询流水柜员当日影像
     * @param id
     * @return
     */
    public TradeTellerImagesVo getTradeTellerImagesVo(String id);


    PaeaDsTrade selectPaeaDsTrade4Image(PaeaDsTrade trade);
}
